<template>
  <el-container class="home-container">
    <el-header>
      <div>
        <img src="../assets/logo.png" alt="">
        <span>All Tools</span>
      </div>
      <div>
        <p><span class="gray">Tools > </span>Cluster Event Platform</p> 
      </div>
      <div>
        <img src="../assets/logout.png" alt="">
        <a href="###">Logout</a>
      </div>
    </el-header>
    <el-container>
      <el-aside width="250px">
            <el-menu router
              default-active="3">
              <el-menu-item index="1">
                <i class="el-icon-files"></i>
                <span slot="title">Account Profile</span>
                <span slot="title" class="badge">123</span>
              </el-menu-item>
              <el-menu-item index="2">
                <i class="el-icon-postcard"></i>
                <span slot="title">Contact Profile</span>
                <span slot="title" class="badge">148</span>
              </el-menu-item>
              <el-menu-item index="3" >
                <i class="el-icon-date"></i>
                <span slot="title">Bookings</span>
                 <span slot="title" class="badge-active">148</span>
              </el-menu-item>
              <el-menu-item index="4">
                <i class="el-icon-user"></i>
                <span slot="title">User Setup</span>
              </el-menu-item>
              <el-menu-item index="5">
                <i class="el-icon-setting"></i>
                <span slot="title">Venue Setup</span>
              </el-menu-item>
              <el-menu-item index="6">
                <i class="el-icon-s-order"></i>
                <span slot="title">Account Profile Audit Report</span>
              </el-menu-item>
              <el-menu-item index="7">
                <i class="el-icon-copy-document"></i>
                <span slot="title">Contact Profile Audit Repport</span>
              </el-menu-item>
              <el-menu-item index="8">
                <i class="el-icon-bell"></i>
                <span slot="title">Marketing Material Managerment</span>
              </el-menu-item>
              <el-menu-item index="8">
                <i class="el-icon-message"></i>
                <span slot="title">Email Tempalte</span>
              </el-menu-item>            
            </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>

    </el-container>
  </el-container>

</template>

<script>
export default {

}
</script>

<style lang="less" scoped>
  .home-container{
    height: 100%;
  }
  .el-header {
    background-color: #263247;
    display: flex;
    justify-content: space-between;
    padding: 0;
    align-items: center;
    color: #fff;
    font-size: 20px;
    > div {
      display: flex;
      align-items: center;
      span {
        margin-left: 15px;
        margin-right: 15px;
      }
      a {
        margin-left: 15px;
        margin-right: 15px;
      }
      p span.gray {
        color: #5a6170;
      }
    }

  }
  .el-aside {

  }
  .el-main {
    padding: 0;
    background-color: #f2f0ef;
  }
::v-deep.el-menu {
    .el-menu-item {
      margin: 8px;
      height: 45px;
      line-height: 45px;
      border-radius: 4px;
      span {
        display: inline-block;
        width: 150px;
        white-space: normal;
        line-height: 24px;
      }
      span.badge {
        font-weight: bold;
        width: 32px;
        height: 12px;
        line-height: 12px;
        padding: 5px;
        background: #dbdbdb;
        border-radius: 4px;
      }
      span.badge-active {
        font-weight: bold;
        width: 32px;
        height: 12px;
        line-height: 12px;
        padding: 5px;
        background: #fff;
        border-radius: 4px;
      }
    }
    .el-menu-item:hover,
    .el-menu-item:focus {
      background-color: #f9e9b8;
      color:#000;
    }
    .is-active{
      background-color: #f9e9b8;
      color:#000;
    }

  }


</style>
